<?php
/**
 * Created by PhpStorm.
 * User: yuanjie
 * Date: 15/9/24
 * Time: 下午3:30
 */
class UserTokens extends Eloquent
{
    protected $table = "user_tokens";

    public static function getToken($token){
        return UserTokens::where('token',$token)->first();
    }

}